import pandas as pd

def read_test_data(file_path):
    df = pd.read_excel(file_path, sheet_name="测试数据")
    test_data = []
    for index, row in df.iterrows():
        test_data.append((
            row["username"],
            row["password"],
            row["expected_status"],
            row["expected_message"]
        ))
    print(test_data)


if __name__ == '__main__':
    read_test_data("登录接口测试用例.xlsx")